import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name: 'login',
    component: () => import("../views/Login")
  },{
    path:"/gai",
    name: 'gai',
    component: () => import("../views/Main"),
    children:[
      {path:"/index", name:"index", component:()=>import("../views/Index")},
      {path:"/music", name:"music", component:()=>import("../views/Music/Music")},
      {path:"/video", name:"video", component:()=>import("../views/Video/Video")},
      {path:"/interview", name:"interview", component:()=>import("../views/Interview/Interview")},
    ]
  },
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
